package com.xqh.javabasic.arrayelement_number_odd_even;
public class ArrayElementNumber_Odd_EvenTwo{

	public static void arrayElementNumber_odd_evenTwo(){
	
			int [] a = new int [1000];
	
			int x =0;
	
		while(x<1000){
			
			a [x] =x+1;
		//System.out.println(a [x]);	
			x++;
		}
			
			int OddNumber =0;
			int EvenNumber =0;   
			
			x=0;
		while(x<1000){
			int status =a[x] % 2;
		switch(status){
		
		case 0:
			
			OddNumber= OddNumber +1;
			//System.out.println(OddNumber + ",");
			break;        
			
		case 1:
		
			EvenNumber = EvenNumber +1; 
			//System.out.println(EvenNumber);
			break;	
		}
			
		System.out.println(OddNumber +" ,"+ EvenNumber);
			x++;                                      
		}
	
	}
	
	public static void main(String [] args){
	arrayElementNumber_odd_evenTwo();
	}
	
}